home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
Patches
/
3.3Patch.LibrariesOK.post_install
< prev
next >
Wrap
Text File
|
1996-04-17
|
1KB
|
67 lines
#!/bin/sh
# 3.3Intel68kPatch.post_install
# 3.3HPPASPARCPatch.post_install
#
# This script will edit the /private/etc/rc and /usr/template/client/etc/rc
# files adding the "-R" flag to the lookupd command. This will force the
# lookupd command to use the old (pre-patch) behavior which means you don't
# get the lookupd / DNS improvements but your statically linked (e.g. POSIX)
# and profiled executables will continue to run as expected.
#
# Allan Nathanson, NeXT Computer, 27 September 1995
#
# Files to be updated.
#
RC1="/private/etc/rc"
RC2="/usr/template/client/etc/rc"
#
# Check that any files which must exist are actually present.
#
for f in ${RC1} ${RC2}
do
if [ ! -f ${f} ]; then
echo "FAILED (The original file, ${f}, does not exist)"
exit 1
fi
done
#
# Make the Installer.app log look nice!
#
echo ""
#
# Save copies of files which are present before package installation.
#
for f in ${RC1} ${RC2}
do
if [ -f ${f}.NS33 ]; then
echo " Original version of ${f} already exists."
else
/bin/echo -n " Saving original version of ${f} ... "
/bin/cp -p ${f} ${f}.NS33
echo "OK."
fi
done
#
# Start "lookupd" with the "-R" flag.
#
for f in ${RC1} ${RC2}
do
echo -n " Updating ${f} ... "
/bin/cp ${f} /tmp/rc.$$
/bin/sed -e 's|/usr/etc/lookupd \&\&|/usr/etc/lookupd -R \&\&|' /tmp/rc.$$ > ${f}
/bin/rm -f /tmp/rc.$$
echo "OK."
done
#
# Make the package installation log look nice!
#
echo " ... done."
exit 0